package com.andaily.web.controller.developer;

import com.andaily.domain.dto.developer.DeveloperOverviewDto;
import com.andaily.service.ScrumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Date: 13-8-6
 *
 * @author Shengzhao Li
 */
@Controller
public class DeveloperController {

    @Autowired
    private ScrumService scrumService;

    //home action
    @RequestMapping(value = {"/", "/developer"})
    public String home(DeveloperOverviewDto developerOverviewDto, Model model) {
        developerOverviewDto = scrumService.loadDeveloperOverviewDto(developerOverviewDto);
        model.addAttribute("developerOverviewDto", developerOverviewDto);
        return "developer_home";
    }

}
